Skip to content

Conversation

@zharinov
Copy link
Member

Summary

  • Add foundational bytecode types for the binary format
  • constants.rs: magic bytes (PTKQ), version, section alignment constants
  • ids.rs: StepId, StringId, QTypeId newtypes with safe indexing
  • header.rs: 64-byte file header struct with section offsets

Context

First PR in a stack implementing bytecode loading (split from larger change for reviewability):

feat/bytecode-ids-header      ← this PR
  └── feat/bytecode-sections
        └── feat/bytecode-effects
              └── feat/bytecode-instructions
                    └── feat/bytecode-module

Test plan

  • cargo check passes
  • Existing tests unaffected

Add foundational bytecode types:
- constants: magic bytes, version, section alignment
- ids: StepId, StringId, QTypeId newtypes
- header: 64-byte file header struct
@zharinov zharinov force-pushed the feat/bytecode-ids-header branch from a9df501 to 4f6ddce Compare December 29, 2025 19:14
@zharinov zharinov merged commit c3e431f into master Dec 29, 2025
4 checks passed
@zharinov zharinov deleted the feat/bytecode-ids-header branch December 29, 2025 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants